package gao.xiaolei.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Table(indexes = {@Index(name = "project_idIndex", columnList = "project"),
        @Index(name = "parent_idIndex", columnList = "parentId")})
@Data
public class TestRequirement extends TestBase{


    public TestRequirement() {
        super();
    }

    public TestRequirement(String id, String title, String parentId, Integer leaf, Integer status, String author) {
        super(id, title, parentId, leaf, status, author);
    }

    public TestRequirement(String id, String title, String parentId, Integer leaf) {
        super(id, title, parentId, leaf);
    }

    public TestRequirement(String id, String title, String author, Integer status, String parentId, String project, LocalDateTime createDate, LocalDateTime updateDate, Integer leaf) {
        super(id, title, author, status, parentId, project, createDate, updateDate, leaf);
    }

}
